﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="changepwd.aspx.vb" Inherits="RWN.changepwd" %>
	<%@ MasterType VirtualPath="~/MainPage.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<table style="width: 100%">
		<tr>
			<td>
				เปลี่ยนรหัสผ่าน
			</td>
		</tr>
		<tr>
			<td>
			</td>
		</tr>
		<tr>
			<td>
				<table>
					<tr>
						<td>รหัสผ่านเดิม:
						</td>
						<td>
						</td>
						<td>
							<asp:TextBox ID="txtOldPassword" runat="server" MaxLength="10" Width="150px" 
								TextMode="Password"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
								ControlToValidate="txtOldPassword" ErrorMessage="กรุณาระบุรหัสผ่านเดิม" 
								ValidationGroup="chgpwd">*</asp:RequiredFieldValidator>
						</td>
					</tr>
					<tr>
						<td>รหัสผ่านใหม่:</td>
						<td>
							&nbsp;</td>
						<td>
							<asp:TextBox ID="txtNewPassword" runat="server" MaxLength="10" Width="150px" 
								TextMode="Password"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
								ControlToValidate="txtNewPassword" ErrorMessage="กรุณาระบุรหัสผ่านใหม่" 
								ValidationGroup="chgpwd">*</asp:RequiredFieldValidator>
						</td>
					</tr>
					<tr>
						<td>รหัสผ่านใหม่ (ยืนยัน):</td>
						<td>
							&nbsp;</td>
						<td>
							<asp:TextBox ID="txtConfirmNewPassword" runat="server" MaxLength="10" 
								Width="150px" TextMode="Password"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
								ControlToValidate="txtConfirmNewPassword" ErrorMessage="กรุณายืนยันรหัสผ่าน" 
								ValidationGroup="chgpwd">*</asp:RequiredFieldValidator>
							<asp:CompareValidator ID="CompareValidator1" runat="server" 
								ControlToCompare="txtNewPassword" ControlToValidate="txtConfirmNewPassword" 
								ErrorMessage="กรุณาระบุรหัสผ่านใหม่ให้เหมือนก้น" ValidationGroup="chgpwd">*</asp:CompareValidator>
						</td>
					</tr>
					<tr>
						<td colspan="3" style=" text-align:right">
							<asp:ValidationSummary ID="ValidationSummary1" runat="server" 
								ShowMessageBox="True" ShowSummary="False" ValidationGroup="chgpwd" />
							<asp:Button ID="btnChange" runat="server" Text="ตกลง" Width="70px" 
								ValidationGroup="chgpwd" />
&nbsp;<asp:Button ID="btnCancel" runat="server" Text="ยกเลิก" Width="70px" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</asp:Content>
